/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package db2docbook;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

/**
 *
 * @author alhshk
 */
public class Database {

  private final Map<String, Type> typeMap = new HashMap<String, Type>();
  private final Map<String, Table> tableMap = new TreeMap<String, Table>();

  public Database() {
  }

  void add(Table table) {
    tableMap.put(table.getName(), table);
    table.setDatabase( this );
  }

  void add(Type type) {
    typeMap.put(type.getTypeName(), type);
  }
}
